import Vue from 'vue'
import App from './App.vue'

//引入bootstrap 和他的css
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'

//引入消息弹窗插件
import 'toastr/build/toastr.css'
import 'toastr/build/toastr.min.js'

//引入自定义字体
import '@/assets/fonts/fonts.css'

//引入自定义图标
import '@/assets/sicon/iconfont.css'

//引入路由
import VueRouter from 'vue-router'
import router from './router/router'

//引入唯一id生成器 
import { nanoid } from 'nanoid'

//引入第三方动画
import animated from 'animate.css'
import 'animate.css'
import 'hover.css'

// 引入axios
import './utils/axios'

// 配置cookie
import cookies from 'vue-cookies'

//引入图片预览组件
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'





//引入自定义封装方法
import httpUser from './utils/httpUser'
import httpBangumi from './utils/httpBangumi'
import pageRedirect from './utils/pageRedirect'
import httpIssue from './utils/httpIssue'
import tool from './utils/tool'


//定义封装方法原型
Vue.prototype.$httpUser = httpUser
Vue.prototype.$httpBangumi = httpBangumi
Vue.prototype.$pageRedirect = pageRedirect
Vue.prototype.$httpIssue = httpIssue
Vue.prototype.$tool = tool


//激活bootstrap
Vue.use(BootstrapVue)
Vue.use(IconsPlugin)

//应用唯一id
Vue.use(nanoid)

//应用动画
// Vue.use(animated)

Vue.config.productionTip = false

//应用路由
Vue.use(VueRouter)


//使用cookies
Vue.prototype.$cookies = cookies;

//使用图片预览
Vue.use(Viewer)

new Vue({
  render: h => h(App),
  router: router,
}).$mount('#app')
